package kevin.framework.basic.common.thread;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description: request线程持有器
 * @author kevin.huang
 * @date 2016年12月17日 下午1:47:42
 * @version v1.0.0
 */
public class RequestThreadHolder {
	private static ThreadLocal<HttpServletRequest> holder = new ThreadLocal<HttpServletRequest>();

	public static HttpServletRequest getRequest() {
		return holder.get();
	}

	public static void setRequest(HttpServletRequest request) {
		holder.set(request);
	}

	public static void clear() {
		holder.remove();
	}

}
